package patterns.builder.main;

import java.util.List;

import com.ran.patterns.factoryMethod.forCore.Sender;

import patterns.builder.core.Builder;

public class Test {
	public static void main(String[] args) {
		Builder builder1 = new Builder();
		Builder builder2 = new Builder();
		List<Sender> senders;
		senders = builder1.produceMails(10);
		for (Sender sender : senders) {
			sender.send();
		}
		senders = builder2.produceSms(5);
		for (Sender sender : senders) {
			sender.send();
		}
	}
}
